package com.health.teahouse.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.health.common.annotation.Excel;
import com.health.common.core.domain.BaseEntity;

/**
 * 运动计划管理对象 exercise_plan
 * 
 * @author yang
 * @date 2024-02-11
 */
public class ExercisePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 计划ID，自增主键 */
    private Long planId;

    /** 关联的用户ID */
    @Excel(name = "关联的用户ID")
    private Long userId;

    public String getUserName() {
        return userName;
    }

    @Override
    public String toString() {
        return "ExercisePlan{" +
                "planId=" + planId +
                ", userId=" + userId +
                ", planName='" + planName + '\'' +
                ", userName='" + userName + '\'' +
                ", startDate=" + startDate +
                ", endDate=" + endDate +
                ", planSuggestion='" + planSuggestion + '\'' +
                '}';
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    /** 计划名称 */
    @Excel(name = "计划名称")
    private String planName;
    private String userName;
    /** 计划开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 计划结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "计划结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 计划建议 */
    @Excel(name = "计划建议")
    private String planSuggestion;

    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setPlanName(String planName) 
    {
        this.planName = planName;
    }

    public String getPlanName() 
    {
        return planName;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setPlanSuggestion(String planSuggestion) 
    {
        this.planSuggestion = planSuggestion;
    }

    public String getPlanSuggestion() 
    {
        return planSuggestion;
    }

}
